package cn.me.alphamq.common.lock;

import java.util.concurrent.locks.ReentrantLock;

/**
 * 非公平的可重入锁
 *
 * @author f
 */
public class UnfairReentryLock implements WriteDataLock {

    private final ReentrantLock lock = new ReentrantLock();

    @Override
    public void lock() {
        lock.lock();
    }

    @Override
    public void unlock() {
        lock.unlock();
    }
}
